//
//  WSJMacros.h
//  WSJBaseProject
//
//  Created by wsj2015 on 2016/11/18.
//  Copyright © 2016年 wsj2015. All rights reserved.
//

#ifndef WSJMacros_h
#define WSJMacros_h

#define HexRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define HexRGBAlpha(rgbValue,a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:(a)]
#define HexRGB_WSJ(x,y,z) [UIColor colorWithRed:(x)/255.0 green:(y)/255.0 blue:(z)/255.0 alpha:1.0]
#define kAppBg [UIColor whiteColor]
#define kTxtColor HexRGB(0x5e606d)
#define kBorderColor HexRGB(0xdedede)
#define kMainColor  [WSJAppearance shareAppearance].mainColor;
#define kScreenHeight   ([UIScreen mainScreen].bounds.size.height)
#define kScreenWidth    ([UIScreen mainScreen].bounds.size.width)
#define kScreenFrame    (CGRectMake(0,0,kScreenWidth,kScreenHeight))
#define kScreenFactor   (kScreenHeight <= 568.0 ? 1.0 : kScreenHeight / 568.0);
#define kWithOutNanBarFrame    (CGRectMake(0,64,kScreenWidth,kScreenHeight-64))
#define kOnePX (1.0/[UIScreen mainScreen].scale)
#define BT_USERID [[HELAppManager userInfo] id]

#ifdef DEBUG
#   define WSJLog(fmt, ...) NSLog((@"%s [Line %d] \n" fmt), __FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#   define WSJDLog(...)
#endif


#if TARGET_OS_IPHONE
//真机
#endif
#if TARGET_IPHONE_SIMULATOR
//模拟器
#endif

#endif /* WSJMacros_h */
